package encap;

public class PerChild {
    private String name;
    public String getName(){
     return name;
    }
    public void setName( String newName){
        this.name=newName;
    }
    public static void main(String[] args) {
        PerChild myobj =new PerChild();
        myobj.setName("Tom");
        System.out.println(myobj.getName());
    }
}
//Tom